/**
 * 
 * @Author: biubiu0002
 * @Date: 2021-04-26 11:41
 **/




#ifndef EAIM_SYSTEM_STUDENTMAPPER_H
#define EAIM_SYSTEM_STUDENTMAPPER_H
#include "Student.h"
#include "StudentMapper.h"
#include "GlobalFile.h"
#include "vector"
#include "list"


class StudentMapper {
private:
    std::list<Student> studentList;

public:
    StudentMapper();
    std::vector<Student> selectStudentByClass(std::string classId);
    int checkId(std::string studentId);

    std::list<Student> loadStudentList();
    int batchInsertStudent(std::list<Student>& studentList);

    const std::list<Student> &getStudentList() const;

    void setStudentList(const std::list<Student> &studentList);

    StudentMapper(const std::list<Student> &studentList);

    virtual ~StudentMapper();

};


#endif //EAIM_SYSTEM_STUDENTMAPPER_H
